package timetable.webservice;

import java.util.List;

import javax.swing.AbstractListModel;

import timetable.io.TimeTableEntry;

class TimeTableListModel extends AbstractListModel {

	private static final long serialVersionUID = 1930015839504249497L;
	private List<TimeTableEntry> records;

	public TimeTableListModel(List<TimeTableEntry> list) {
		this.records = list;
	}

	public int getSize() {
		return records.size();
	}

	public Object getElementAt(int n) {
		return records.get(n).toString();
	}
}
